// 首页轮播图
export interface Banner {
  targetId: number;
  url: string;
  imageUrl: string;
}

// 首页歌曲标签
export interface HotTags {
  id: number;
  name: string;
  position: number;
}

// 歌单简单信息
export interface SongSheet {
  id: number;
  name: string;
  picUrl: string;
  playCount: number;
  tracks: Array<Song>;
}

// 歌手信息
export interface Singer {
  id: number;
  name: string;
  picUrl: string;
  albumSize: number;
}

// 查询歌手信息的参数
export interface SingerParams {
  offset: number;
  limit: number;
  cat?: string;
}

// 默认查询歌手信息的参数
export const defaultSingerParams: SingerParams = {
  offset: 0,
  limit: 9,
  cat: '5001'
};

// home 页面的所有数据的类型
export type HomeDataType = [Array<Banner>, Array<HotTags>, Array<SongSheet>, Array<Singer>];

export interface Song {
  id: number;
  name: string;
  url: string;
  ar: Array<Singer>;
  al: {
    id: number;
    name: string;
    picUrl: string;
  };
  dt: number;
}

// 播放地址
export interface SongUrl {
  id: number;
  url: string;
}
